var t = require("../../nitro.js"), e = (require("../../configs.js"), getApp());

Page({
    data: {
        isIpx: e.globalData.isIpx,
        stores: []
    },
    onLoad: function(t) {
        this.setData({
            options: t
        });
    },
    onReady: function() {},
    onShow: function() {
        var a = this, o = t.getStore();
        wx.setNavigationBarTitle({
            title: "" + o.name
        }), delete e.globalData.categories, delete e.globalData.items, delete e.globalData.themeGroups;
        var i = [ {
            type: "life",
            name: "0-12个月",
            location: "满月/百天/周岁照",
            description: "日系小清新风格",
            icon_new: !0,
            stores: [ "a13e5bca9835edf92bb4aa50" ]
        }, {
            type: "kids",
            name: "10个月-12岁",
            location: "",
            description: "棚拍、小主题、大头照",
            stores: [ "a13e5bca9835edf92bb4aa50", "06eaf5a882578bd88fdf681c", "ee681c9d4db6de2733747ae6" ]
        } ];
        this.setData({
            loaded: !0,
            items: i.filter(function(t) {
                return t.stores.includes(a.data.options.store_id);
            })
        });
    },
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    initStores: function() {},
    itemTapHandler: function(a) {
        var o = a.currentTarget.dataset.storeid, i = a.currentTarget.dataset.type, n = this.data.stores.find(function(t) {
            return t.id === o;
        });
        t.setStore(o), e.globalData.cart.store = n, e.globalData.cart.storeId = o;
        var r = "/pages/artworks/artworks?store_id=" + o + "&type=" + i;
        "life" === i && (r = "/pages/product-detail/product-detail?store_id=5bc1f1109e6d245925b9d4df&category_id=5bc1f4dd9e6d245925b9d4f6&type=" + i), 
        wx.navigateTo({
            url: r,
            success: function(t) {},
            fail: function(t) {},
            complete: function(t) {}
        });
    }
});